.class Lcom/nemustech/regina/ImagePlater$1;
.super Ljava/lang/Object;
.source "ImagePlater.java"

# interfaces
.implements Lcom/nemustech/regina/ImagePlater$PaintPanelDelegate;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ImagePlater;->plateTrash(Lcom/nemustech/tiffany/world/TFPanel;IIZ)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ImagePlater;

.field final synthetic val$theInverse:Z


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ImagePlater;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 211
    iput-object p1, p0, Lcom/nemustech/regina/ImagePlater$1;->this$0:Lcom/nemustech/regina/ImagePlater;

    iput-boolean p2, p0, Lcom/nemustech/regina/ImagePlater$1;->val$theInverse:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public paintPanel(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V
    .locals 5
    .parameter "canvas"
    .parameter "paint"

    .prologue
    .line 214
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I

    move-result v2

    .line 215
    .local v2, width:I
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I

    move-result v1

    .line 219
    .local v1, height:I
    iget-object v3, p0, Lcom/nemustech/regina/ImagePlater$1;->this$0:Lcom/nemustech/regina/ImagePlater;

    invoke-static {v3}, Lcom/nemustech/regina/ImagePlater;->access$000(Lcom/nemustech/regina/ImagePlater;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncher;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    iget-boolean v4, p0, Lcom/nemustech/regina/ImagePlater$1;->val$theInverse:Z

    if-eqz v4, :cond_0

    const v4, 0x7f020079

    :goto_0
    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 221
    .local v0, bmp:Landroid/graphics/Bitmap;
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    sub-int v3, v2, v3

    div-int/lit8 v3, v3, 0x2

    int-to-float v3, v3

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    sub-int v4, v1, v4

    div-int/lit8 v4, v4, 0x2

    int-to-float v4, v4

    invoke-virtual {p1, v0, v3, v4, p2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 222
    return-void

    .line 219
    .end local v0           #bmp:Landroid/graphics/Bitmap;
    :cond_0
    const v4, 0x7f020078

    goto :goto_0
.end method
